package com.movies.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by chemeng on 2017/3/10.
 */
public class Movie implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String name;

    private String foreignName;

    private Integer score;

    private String director;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    private String actors;

    private String type;

    private String areas;

    private String language;

    private Integer filmLength;

    private String status;

    private String postId;

    public Movie() {
    }

    public String getForeignName() {
        return foreignName;
    }

    public void setForeignName(String foreignName) {
        this.foreignName = foreignName;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getActors() {
        return actors;
    }

    public void setActors(String actors) {
        this.actors = actors;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAreas() {
        return areas;
    }

    public void setAreas(String areas) {
        this.areas = areas;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Integer getFilmLength() {
        return filmLength;
    }

    public void setFilmLength(Integer filmLength) {
        this.filmLength = filmLength;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPostId() {
        return postId;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

   /* public Movie(String name, String director, Date date) {
        this.name = name;
        this.director = director;
        this.date = date;
    }

    public Movie(Integer id, String name, String director, Date date) {
        super();
        this.id = id;
        this.name = name;
        this.director = director;
        this.date = date;
    }*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
